<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{$title|raw}</title>
<meta name="keywords" content="{$rs.keyword|raw}" />
<meta name="description" content="{$rs.description|raw}" />
<link rel="shortcut icon" type="image/x-icon" href="{$siteRs.ico}" />
{include file="public/css" /}
</head>
<body>
{include file="public/head" /}
<!--banner 开始-->
<div id="myCarousel" class="carousel slide" data-ride="carousel">
    <div class="carousel-inner">
        <div class="carousel-item pt-5 active banner" style="background:url({$page_banner}) center center no-repeat;">
            <div class="col-md-12 mt-4 mt-sm-5 pt-sm-5 text-center">
                <div class="h2 text-white text-uppercase">{:lang('v_news')}</div>
            </div>
        </div>
    </div>
</div>
<!--banner 结束-->
<!--面包屑 开始-->
<div class="w-100 bg-light py-2">
    <div class="container">
        <div class="row">
            <div class="col-md-8 pt-1 d-none d-sm-block">
                <a href="{$home_path}" class="mr-2">{:lang('v_home')}</a> <i class="fa fa-angle-right"></i>
                <a href="<?php the_list_url($controller); ?>" class="ml-2">{:lang('v_news')}</a>
                {volist name="crumb" id="listnavRs"}
                    <i class="fa fa-angle-right ml-2 mr-2"></i><a href="{$listnavRs.url}">{$listnavRs.title}</a>
                {/volist}
            </div>
            <div class="col-md-4">
                <form name="form_search" id="form_search" method="get" action="<?php the_list_url($controller); ?>">
                    <div class="input-group">
                        <input type="text" class="form-control form-control-sm btn-rounded" name="keyword" id="keyword" placeholder="{:lang('v_keyword_tips')}...">
                        <span class="input-group-append"><button type="button" name="button" id="button" class="btn btn-sm btn-rounded px-3"><i class="fa fa-search"></i></button></span>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--面包屑 结束-->
<!--主体 开始-->
<div class="container mt-4 mt-sm-5">
    <div class="row">
        <!-- 分类 -->
        <div class="col-md-12 text-center">
            <a href="<?php the_list_url($controller); ?>" class="btn btn-default btn-rounded px-4 mx-2 mb-3 mb-sm-0"><span class="h6">{:lang('v_all')} {:lang('v_sort')}</span></a>
            <?php $sort_list = sort_list(40, $lang, $controller); ?>
            {volist name="sort_list" id="sortRs"}
                <a href="<?php the_category_url($sortRs['id'], $controller); ?>" class="btn btn-{if $rs['sortid'] eq $sortRs['id']}danger{else /}default{/if} btn-rounded px-4 mx-2 mb-3 mb-sm-0"><span class="h6">{$sortRs.title}</span></a>
            {/volist}
        </div>
        <!--内容 开始-->
        <div class="col-md-12 mt-sm-5">
            <div class="page-right">
                <!--详情-->
                <h1 class="h5 font-weight-bold text-center line-height-180">{$rs.title}</h1>
                <div class="w-100 text-center">
                    <p class="text-muted">
                        <i class="far fa-clock mr-1"></i>{:lang('v_date')}：{$rs.addtime|date='Y-m-d'}
                        <i class="fa fa-cubes ml-2 mr-1"></i>{:lang('v_sort')}：{$rs.sort_title}
                        <i class="fa fa-eye ml-2 mr-1"></i>{:lang('v_hits')}：{$rs.hits}
                        <i class="fa fa-paper-plane ml-2 mr-1"></i>{:lang('v_copyfrom')}：{$rs.copyfrom}
                    </p>
                    <hr>
                </div>
                <div class="w-100 detail">{$rs.content1|raw}</div>
                <hr>
                <div class="w-100">{include file="public/share" /}</div>
                <p class="mt-3 mb-2 ellipsis line-1">
                        {:lang('v_previous_page')}：
                        {empty name="preRs"}
                            {:lang('v_nodata')}
                        {else /}
                            <a href="<?php the_view_url($preRs['id'],$controller); ?>">
                                {$preRs.title|raw}
                            </a>
                        {/empty}
                    </p>
                    <p class="mb-0 ellipsis line-1">
                        {:lang('v_next_page')}：
                        {empty name="nextRs"}
                            {:lang('v_nodata')}
                        {else /}
                            <a href="<?php the_view_url($nextRs['id'],$controller); ?>">
                                {$nextRs.title|raw}
                            </a>
                        {/empty}
                    </p>
            </div>
        </div>
        <!--内容 结束-->
    </div>
</div>
{include file="public/foot" /}
</body>
</html>